Matplotlib Example - Line Plot:¶

A basic line plot using Matplotlib to visualize the sine function.

In [ ]:
import matplotlib.pyplot as plt
import numpy as np

# Example Line Plot
x = np.linspace(0, 10, 100)
y = np.sin(x)

plt.plot(x, y)
plt.title('Matplotlib Example - Line Plot')
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.show()

Seaborn Example - Scatter Plot:¶

A scatter plot using Seaborn depicting the relationship between total bill and tip in a restaurant dataset.

In [ ]:
import seaborn as sns
import matplotlib.pyplot as plt

# Example Scatter Plot
tips = sns.load_dataset("tips")

sns.scatterplot(x="total_bill", y="tip", data=tips)
plt.title('Seaborn Example - Scatter Plot')
plt.show()

Plotly Example - 3D Scatter Plot:¶

A 3D scatter plot using Plotly Express to showcase data points in a three-dimensional space.

In [ ]:
import plotly
import plotly.express as px
import pandas as pd
plotly.offline.init_notebook_mode()

# Example 3D Scatter Plot
df = pd.DataFrame({'X': [1, 2, 3, 4], 'Y': [10, 11, 12, 13], 'Z': [100, 110, 120, 130]})
fig = px.scatter_3d(df, x='X', y='Y', z='Z', title='Plotly Example - 3D Scatter Plot')
fig.show()

HYPERLINK EXAMPLE¶

LEARN ABOUT AI

TABLE EXAMPLE¶

NAME WEIGHT
RADHIKA 56
SIDDHI 89
HARSHIL 85

IMAGE EXAMPLE¶

WORLD HEALTH ORGANIZATION LOGO

WORLD HEALTH ORAGANISATION LOGO